

import bpy
import nodeitems_utils
from bpy.types import Operator, Menu





class C_节点子菜单_运算(Menu):
	bl_idname = "node.menu_operation"
	bl_label = "运算"

	def draw(self, context):
		layout = self.layout

		layout.menu("node.math_operation")
		layout.menu("node.math_conversion")
		layout.menu("node.math_fun")
		layout.menu("node.math_geometric_calculation", icon='EVENT_G')
		
		layout.separator()



		layout.label(text="矩阵")
		layout.separator()

		layout.operator('node.global_add_materix_operation', icon='FONTPREVIEW')
		layout.operator('node.add_mat_coord_sys_conversion', icon='OBJECT_ORIGIN')
		layout.operator('node.add_transform_from_matrix4x4', icon='LIGHTPROBE_GRID')
		layout.separator()
		layout.operator('node.add_mat_build_loc', icon='ORIENTATION_GLOBAL')
		layout.operator('node.add_mat_build_rot', icon='ORIENTATION_GIMBAL')
		layout.operator('node.add_mat_build_sca', icon='ORIENTATION_LOCAL')
		

		#执行入口
		layout.operator("node.global_node_entrances")
		layout.operator("node.global_node_manual_execution")
		layout.operator("node.global_node_exec_update")



'''class C_节点子菜单_运算(Menu):
	bl_idname = "node.menu_scalar_operation"
	bl_label = "场景数据"
	
	def draw(self, context):
		layout = self.layout
		#layout.operator("node.global_node_scene_frame")
		layout.menu("node.image_texture", icon='ALIGN_FLUSH')
'''






classes = (
	C_节点子菜单_运算,
	#C_节点子菜单_数据,
)

def register():
	for c in classes:
		bpy.utils.register_class(c)

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

	



